package com.yihuu.Util;

import org.springframework.util.DigestUtils;

/**
 * Created by yuhui on 2017/8/16.
 */
public class MD5Util {
    private static final String salt="sdfusiahr%^exwer%^&*(^%&*(045433049582hdkfjfn";

    public static String md5(String source){
        String newString=source+salt;
        String hex = DigestUtils.md5DigestAsHex(newString.getBytes());
        return hex.toUpperCase();
    }
}
